//
//  WBHomeViewController.swift
//  Swift_weiboDemo
//
//  Created by toro宇 on 2017/5/9.
//  Copyright © 2017年 toro宇. All rights reserved.
//

import UIKit

class WBHomeViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    // 显示好友
     func showFriend(){
        print(#function)
        let vc = WBDemoViewController()
        vc.hidesBottomBarWhenPushed = true
        navigationController?.pushViewController(vc, animated: true)
    }
    
}

extension WBHomeViewController{

    // 重写父类的方法
    override func setUpUI() {
        super.setUpUI()
        // 设置导航栏按钮
        navItem.leftBarButtonItem = UIBarButtonItem(title: "好友", fontSize: 16, target: self, action: #selector(showFriend))
        
    }
}
